<html>
    <head>
        <title>Relatório de Carros</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="js/libs/autocomplete.js"></script>
        <script type="text/javascript" src="js/libs/jquery-1.3.2.min.js"></script>
        <link rel="stylesheet" type="text/css" href="css/default.css">
        <link rel="stylesheet" type="text/css" href="css/menu.css">
        <link rel="stylesheet" type="text/css" href="css/autocomplete.css">

    </head>

    <script type="text/javascript">
        $(document).ready(function(){
            new Autocomplete("model", function() {
                this.setValue = function(model) {
                    $("#modelSearch").val(model);
                }
                if ( this.isModified ){
                    this.setValue("");
                }
                if ( this.value.length < 1 && this.isNotClick ){
                    return ;
                }
                return "autoCompleteCarRel.php?q=" + this.value;
            });

        });
    </script>

    <body>
        <div id="container">
            <div id="title">
                <div id="img">
                <img src="css/ico_car.png"/>
                </div>
                <div id="h1">
                <h1>Park Control</h1>
                </div>
            </div>
            <div id="menu">
                <ul class="menu">
                    <li><a href="#" title="Cadastros">Cadastros</a>
                        <ul>
                            <li><a href="newCli.php" target="_parent" >Cadastrar Clientes</a></li>
                            <li><a href="newCar.php" target="_parent">Cadastrar Carros</a></li>
                            <li><a href="newFares.php" target="_parent">Cadastrar Tarifas</a></li>
                        </ul>
                    </li>
                    <li><a href="#" title="Gerenciar">Gerenciar</a>
                        <ul>
                            <li><a href="newPark.php" target="_parent">Entrada de Carros</a></li>
                            <li><a href="relExitPark.php" target="_parent">Saida de Carros</a></li>
                        </ul>
                    </li>
                    <li><a href="#" title="Relatorios">Relatórios</a>
                        <ul>
                            <li><a href="relCar.php" target="_parent">Relatório de Carros</a></li>
                            <li><a href="relCli.php" target="_parent">Relatório de Clientes</a></li>
                            <li><a href="relPark.php" target="_parent">Relatório de Entradas</a></li>    
                        </ul>
                    </li>
                </ul>
            </div>
            <form method="POST" action="tableCar.php?" name="carRel" id="carRel"/>
            <div id="span"> 
                <span id="carRelError" class="error"><h2>Relatório de Carros</h2></span>
            </div>
            <fieldset>
                <div id="modelSearchDiv" name="modelSearchDiv">
                    <label for id="modelSearch">
                        Modelo:
                        <input type="text" id="modelSearch" name="modelSearch" />
                    </label>
                    <div id="buttons">
                        <input type="submit" value="Pesquisar" id="carRelOkButton"/>
                    </div>
                    <h6>(Deixe em branco para listar todos os carros)</h6>
                </div>
            </fieldset>
        </form>
    </div>
</body>
</html>
